package com.thoughtmechanix.controllers;

import com.thoughtmechanix.model.Organization;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述
 *
 * @author zgl
 * @version 1.0
 * @date 2019-07-24 14:53
 */

@RestController
@RequestMapping(value="/v1/organizations")
public class OrganizationServiceController {

    @RequestMapping(value="/{organizationId}",method = RequestMethod.GET)
    public Organization getOrganization(@PathVariable("organizationId") String organizationId ) {
        return new Organization().withOrganizationId(organizationId);
    }

}
